﻿namespace UIFramework
{
    /// <summary>
    /// 基础消息
    /// </summary>
    public class MsgBase
    {
        /// <summary>
        /// 消息id
        /// </summary>
        public ushort msgId;

        public MsgBase() { }

        public MsgBase(ushort id)
        {
            msgId = id;
        }
    }

    public class MsgData<T> : MsgBase
    {
        public T data;

        public MsgData(ushort id, T data) : base(id)
        {
            this.data = data;
        }
    }
}